function Dog(){
	this.tail = true;
}
var benji = new Dog();
var rusty = new Dog();

Dog.prototype.say = function(){
	return 'Woof!';
};
Dog.prototype = {
	paws: 4,
	hair:true
};
console.log("typeof benji.paws");
console.log(typeof benji.paws);
console.log("typeof benji.say()");
console.log(typeof benji.say());
console.log("typeof benji.__proto__.say");
console.log(typeof benji.__proto__.say);
console.log("typeof benji.__proto__.paws");
console.log(typeof benji.__proto__.paws);
console.log("==========new class lucy==========");
var lucy = new Dog();
console.log("lucy.paws");
console.log(lucy.paws);
console.log("typeof lucy.__proto__.say");
console.log(typeof lucy.__proto__.say);
console.log("typeof lucy.__proto__.paws");
console.log(typeof lucy.__proto__.paws);
console.log("lucy.constructor");
console.log(lucy.constructor);
console.log("benji.constructor");
console.log(benji.constructor);
//console.log("lucy.say()");
//console.log(lucy.say());
console.log("==========repair==========");
function Dog(){}
Dog.prototype ={}
console.log("new Dog().constructor === Dog");
console.log(new Dog().constructor === Dog);
Dog.prototype.constructor =Dog;
console.log("new Dog().constructor === Dog");
console.log(new Dog().constructor === Dog);